import React, { useEffect } from 'react';
import { Toast } from 'antd-mobile';
// import { DotLoading } from 'antd-mobile';
// import styles from './index.module.scss';

export default function Loading() {
  useEffect(() => {
    Toast.show({
      icon: 'loading',
      content: '加载中…',
      duration: 0,
    });
    return () => {
      Toast.clear();
    };
  }, []);
  return <div></div>;
  // return <DotLoading className={styles.root}></DotLoading>;
}
